const getAccessToken = function () {
    return localStorage.accessToken
}

const setAccessToken = function (accessToken) {
    return localStorage.accessToken = accessToken
}

const removeAccessToken = function () {
    localStorage.removeItem('accessToken')
}


const getRefreshToken = function () {
    return localStorage.refreshToken
}

const setRefreshToken = function (refreshToken) {
    return localStorage.refreshToken = refreshToken
}

const removeRefreshToken = function () {
    localStorage.removeItem('refreshToken')
}

const getTokenType = function () {
    return localStorage.tokenType
}

const setTokenType = function (tokenType) {
    return localStorage.tokenType = tokenType
}

const removeTokenType = function () {
    localStorage.removeItem('tokenType')
}

export default {
    getAccessToken,
    setAccessToken,
    removeAccessToken,
    getRefreshToken,
    setRefreshToken,
    removeRefreshToken,
    getTokenType,
    setTokenType,
    removeTokenType
}